package com.liumuxian.user.pojo;

import lombok.Data;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Data
@Entity
@Table(name="tb_problem")
@Proxy(lazy = false)
public class Problem implements Serializable {

    @Id
    @Column(name = "id",length = 20)
    private String id;//id
    @Column(name = "userid" ,length = 20)
    private String  userid;//用户id
    @Column(name = "depict")
    private String depict;//描述
    @Column(name = "imga" ,length = 100)
    private String  imga;//照片一
    @Column(name = "imgb" ,length = 100)
    private String imgb;//照片二
    @Column(name = "imgc" ,length = 100)
    private String imgc;//照片三
    @Column(name = "imgd" ,length = 100)
    private String imgd;//照片四
    @Column(name = "createdate" )
    private Date createdate;//创建时间
    @Column(name = "state",length = 1)
    private Integer state;//状态
}
